<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">台账编辑</h4>
</div>
<form id="defaultForm" method="post" class="form-horizontal" action="/project/indexManage/property_save">
    <div class="modal-body">
        <input name="id"  style="display: none" th:value="${accountPropertyInfo.id}">
            <div class="form-group">
                <label class="col-lg-3 control-label">编号</label>
                <div class="col-lg-6">
                    <input type="text" class="form-control" name="code" th:value="${accountPropertyInfo.code}" />
                </div>
            </div>

        <div class="form-group">
                <label class="col-lg-3 control-label">名称</label>
                <div class="col-lg-6">
                    <input type="text" class="form-control" name="name" th:value="${accountPropertyInfo.name}"/>
                </div>
            </div>


            <div class="form-group">
                <label class="col-lg-3 control-label">适用对象</label>
                <div class="col-lg-6">
                    <select class="form-control" name="objName">
                        <option th:each="parameter:${objects}" th:value="${parameter.id}" th:text="${parameter.name}"
                                th:selected="${parameter.id eq accountPropertyInfo.objName }"></option>
                    </select>
                </div>
            </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">所属类别</label>
            <div class="col-lg-6">
                <select class="form-control" name="parameterType">
                    <option th:each="parameter:${parameterTypes}" th:value="${parameter.id}" th:text="${parameter.name}"
                            th:selected="${parameter.id eq accountPropertyInfo.parameterType}"></option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-lg-3 control-label">类型</label>
            <div class="col-lg-6">
                <select class="form-control" name="propertyType">
                    <option th:each="parameter:${propertyTypes}" th:value="${parameter.id}" th:text="${parameter.name}"
                            th:selected="${parameter.id eq accountPropertyInfo.propertyType}"></option>
                </select>
            </div>
        </div>


        <div class="form-group">
            <label class="col-lg-3 control-label">是否二次修改</label>
            <div class="col-lg-6">
                <div class="col-lg-6">
                <div class="checkbox">
                    <label>
                        <input type="checkbox" name="isModify" th:value="${accountPropertyInfo.isModify}"
                               th:checked="${accountPropertyInfo.isModify}" onclick="this.value=(this.value==0)?1:0">
                    </label>
                </div>
            </div>
        </div>
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">保存</button>
    </div>
</form>

<script>
    initCheck();
</script>